package com.dronff.common.feign;

import com.dronff.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author tyf
 * @date 2022/7/21 18:48
 */
@FeignClient("mall-service")
public interface MallFeign {
    @GetMapping("addCommodity")
    public ResponseResult addCommodity(@RequestParam("name")String name,@RequestParam("price")Integer price,@RequestParam("count")Integer count);
    @GetMapping("buy")
    ResponseResult buy(@RequestParam("id")Integer id,@RequestParam("userId")Integer userId) throws Exception;
}
